﻿<?xml version="1.0" encoding="utf-8" ?>
<log4net>
	<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender, log4net">
		<layout type="log4net.Layout.PatternLayout, log4net">
			<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
		</layout>
	</appender>
	<appender name="LogFileAppender" type="log4net.Appender.FileAppender" >
		<file value="logdata/server-log.txt" />
		<appendToFile value="true" />
		<maxSizeRollBackups value="10" />
		<maximumFileSize value="5MB" />
		<rollingStyle value="Size" />
		<staticLogFileName value="true" />
		<layout type="log4net.Layout.PatternLayout">
			<conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline" />
		</layout>
		<filter type="log4net.Filter.LevelRangeFilter">
			<param name="LevelMin" value="DEBUG" />
			<param name="LevelMax" value="DEBUG" />
		</filter>
	</appender>
	<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
		<param name="File" value="logdata/log-"/>
		<param name="AppendToFile" value="true"/>
		<param name="MaxSizeRollBackups" value="10"/>
		<maximumFileSize value="5MB" />
		<param name="StaticLogFileName" value="false"/>
		<param name="DatePattern" value="yyyy-MM-dd&quot;.log&quot;"/>
		<param name="RollingStyle" value="Date"/>
		<layout type="log4net.Layout.PatternLayout">
			<conversionPattern value="%date [%thread] %-5level %logger [%ndc] - %message%newline" />
		</layout>
		<filter type="log4net.Filter.LevelRangeFilter">
			<param name="LevelMin" value="DEBUG" />
			<param name="LevelMax" value="DEBUG" />
		</filter>
	</appender>
	<appender name="DebugAppender" type="log4net.Appender.DebugAppender, log4net" >
		<layout type="log4net.Layout.PatternLayout">
			<param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n" />
		</layout>
	</appender>

	<root>
		<level value="DEBUG"/>
		<appender-ref ref="DebugAppender"/>
	</root>
	<logger name="ExceptionLogger">
		<level value="DEBUG"/>
	</logger>
	<logger name="NHibernate">
		<level value="INFO"/>
	</logger>
	<logger name="Spring">
		<level value="INFO"/>
	</logger>
</log4net>